package com.fm.base.work;

@FunctionalInterface
public interface Worker<T> extends AutoCloseable {
	/**
	 * @return true if the work is done correctly
	 */
	Boolean work(T message) throws Exception;
	default void close() {}
}
